<div id="wowslider-container1">
			<div class="ws_images">
                 <ul>
                    <?php $this->load->view("template/banner")?>
                </ul>
            </div>
		</div>
	<script type="text/javascript" src="<?php echo base_url();?>public/scripts/home/wowslider.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>public/scripts/home/script.js"></script>
		<div id="gallery">
        		<p class="gallery_title">Album Ảnh</p>
                <div class="outer_boder">
                	<div class="album">
                    	<ul>
                        	<?php $this->load->view("template/albumthumb") ?>
                        </ul>
                    </div><!--end album-->
                    <a href="#" class="next"></a>
                    <a href="#" class="prev"></a>
                </div><!--end outer_boder-->
        </div><!--end gallery-->
        <div class="clear"></div>
           <p class="menu_title">Thư viện ảnh</p> 
    		<?php if(!empty($result)){foreach($result as $item){?>
                <div class="menu_foot">
                    <a target="_blank" href="<?php echo base_url()?>/index.php/gallery/detail/<?php echo $item["cat_id"]?>" style="background:#CCC"><img  src="<?php echo base_url()?>upload/gallery/<?php if($item["images"]["gallery_image"]  !="") echo $item["images"]["gallery_image"] ; else { echo "no_image.gif";} ?>"/></a>
                    <p><strong><?php echo $item["cat_name"] ?></strong><br /></p>
                </div><!--end menu foot-->
                <?php 
					}
                }
					else   '<p class="menu_title">Hiên đang cập nhật</p>';
				?>
            